<ion-view view-title="发起的秒杀">

    <div class="bar bar-subheader padding-bottom-0">
        <div class="row padding-0 font-large-my text-center">
             <div class="col col-10">&nbsp;</div>
            <div class="col" ng-class="selectIndex==0?'top-activated':''" on-tap="activeSlide(0)">
                进行中
            </div>
            <div class="col" ng-class="selectIndex==1?'top-activated':''" on-tap="activeSlide(1)">
                已结束
            </div>
         <div class="col col-10">&nbsp;</div>
        </div>
    </div>
        <ion-content class="has-subheader">
            <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
            <ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
                <!--进行中-->
                <ion-slide>
                    <div class="list list-borderless" ng-repeat="doing in list.act">
                        <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                            <img src="{{doing.image.image}}">
                            <!--<p >{{auction.name}}</p>-->
                            <p><span class="assertive">{{doing.name}}</span><span class="right-zhang balanced">活动中...</span></p>
                            <p><i class="icon ion-clock"></i>{{doing.start_time}}</p>
                            <p><i class="icon ion-clock"></i>{{doing.end_time}}</p>
                            <p>
                                <span on-tap="onshow_groupseckill_agent(doing.act_id)"><i class="icon ion-person assertive" ></i>参加</span>
                                <i class="icon ion-android-contacts assertive margin-left-10-my"></i>群互动
                            </p>
                        </div>
                    </div>
                </ion-slide>

                <!--已结束-->
                <ion-slide>
                    <div class="list list-borderless" ng-repeat="ended in ended.act">
                        <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                            <img src="{{ended.image.image}}">
                            <!--<p >{{auction.name}}</p>-->
                            <p><span class="assertive">{{ended.name}}</span><span class="right-zhang">已结束</span></p>
                            <p><i class="icon ion-clock"></i>{{ended.start_time}}</p>
                            <p><i class="icon ion-clock"></i>{{ended.end_time}}</p>
                            <p on-tap="onshow_statistics_second_agent(ended.act_id)">
                                <span><i class="icon ion-android-options assertive"></i>统计</span>
                            </p>
                        </div>
                    </div>
                </ion-slide>

            </ion-slide-box>
            <ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
        </ion-content>

</ion-view>